<?php
namespace Api\Controller;
use Think\Controller;
class OrderController extends Controller {
   public function getAllOrder(){
        $order=M('order');
        $data=$order->order("uid")->select();
        echo json_encode($data);  
    }
    public function getOrderById(){
    	$oid=$_GET['orderid'];
        $order=M('order');
        $data=$order->where("orderid='$oid'")->select();
        echo json_encode($data);
    }

}